/**************************************************************************************
* ColorData.java
* Definitions for colors in the game world
*************************************************************************************/
package creid.mythos.ui;

import java.awt.Color;
import java.util.HashMap;

public class ColorData
{

	//Constants/////////////////////////////////////////////////////////////////////////
	
	public static final char BLACK = 'k';
	public static final char WHITE = 'w';
	public static final char RED = 'r';
	public static final char GREEN = 'g';
	public static final char BLUE = 'b';
	public static final char YELLOW = 'y';
	public static final char LIGHT_GRAY = 'W';
	public static final char GRAY = 'a';
	public static final char DARK_GRAY = 'A';
	public static final char PINK = 'p';
	public static final char DARK_RED = 'R';
	public static final char LIGHT_GREEN = 'j';
	public static final char DARK_GREEN = 'G';
	public static final char LIGHT_BLUE = 'U';
	public static final char DARK_BLUE = 'B';
	public static final char ORANGE = 'n';
	public static final char TAN = 't';
	public static final char BROWN = 'o';
	public static final char DARK_BROWN = 'O';
	public static final char PURPLE = 'P';
	public static final char ALMOST_BLACK = 'K';
	public static final char LOW_HEALTH = 'h';
	
	public static final char UNSEEN = DARK_GRAY;
	public static final char UNSEEN_BLOOD = ALMOST_BLACK;
	public static final char UNSEEN_THING = GRAY;
	public static final char DEFAULT_FOREGROUND = WHITE;
	public static final char DEFAULT_BACKGROUND = BLACK;
	public static final char HEALTH_BAR = GREEN;
	public static final char HEALTH_BAR_BG = RED;
	    
    public static final Color LOW_HEALTH_BG      = new Color(100,   0,   0);

	//Attributes////////////////////////////////////////////////////////////////////////

	//Methods///////////////////////////////////////////////////////////////////////////
	public static HashMap<Character, Color> initColors()
	{
		HashMap<Character, Color> colorHash = new HashMap<Character, Color>();
		
		colorHash.put(BLACK, new Color(  0,   0,   0));
		colorHash.put(WHITE, new Color(255, 255, 255));
		colorHash.put(LIGHT_GRAY, new Color(200, 200, 200));
		colorHash.put(GRAY, new Color(150, 150, 150));
		colorHash.put(DARK_GRAY, new Color( 85,  85,  85));
		colorHash.put(ALMOST_BLACK, new Color(35,  35,  35));
		colorHash.put(PINK, new Color(255,   0, 255));
		colorHash.put(RED, new Color(255,   0,   0));
		colorHash.put(DARK_RED, new Color(200,   0,   0));
		colorHash.put(LIGHT_GREEN, new Color(150, 255, 150));
		colorHash.put(GREEN, new Color(  0, 255,   0));
		colorHash.put(DARK_GREEN, new Color(  0, 105,   0));
		colorHash.put(LIGHT_BLUE, new Color(190, 190, 255));
		colorHash.put(BLUE, new Color(  0,   0, 255));
		colorHash.put(DARK_BLUE, new Color(  0,   0, 105));
		colorHash.put(ORANGE, new Color(225, 127,  39));
		colorHash.put(TAN, new Color(178, 114,  50));
		colorHash.put(BROWN, new Color(128,  64,   0));
		colorHash.put(DARK_BROWN, new Color(80,  40,  0));
		colorHash.put(YELLOW, new Color(255, 255,   0));
		colorHash.put(PURPLE, new Color(180,   0, 180));
		colorHash.put(LOW_HEALTH, new Color(100, 0, 0));
		
		return colorHash;
	}
}
